$OpenBSD: patch-lib_mega_c,v 1.1 2016/11/21 06:43:40 bentley Exp $
Fix compiling against LibreSSL.
From upstream 3111b1b11330feb8b81d163bce67c5579a289796.
--- lib/mega.c.orig	Thu Nov  3 07:45:42 2016
+++ lib/mega.c	Sat Nov 19 21:10:21 2016
@@ -803,7 +803,7 @@ static gboolean rsa_key_gen(rsa_key* k)
     return FALSE;
   }
 
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x101000000L && !defined(LIBRESSL_VERSION_NUMBER)
   RSA_get0_key(key, &k->m, &k->e, &k->d);
   RSA_get0_factors(key, &k->q, &k->p);
   RSA_get0_crt_params(key, NULL, NULL, &k->u);
